package com.bw.service;

import com.bw.bean.Emp1;
import com.bw.dao.Emp1Dao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class Emp1ServiceImp implements Emp1Service {

    @Autowired
    Emp1Dao emp1Dao;

    @Override
    public List<Emp1> findAll() {
        return emp1Dao.findAll();
    }

    @Override
    public List<Map> TowFindAll() {
        return emp1Dao.TowFindAll();
    }

    @Override
    public List<Map> FindEmpName(String empName) {
        return emp1Dao.FindEmpName(empName);
    }

    @Override
    public List<Emp1> FindLike(String empName) {
        return emp1Dao.FindLike(empName);
    }

    @Override
    public List<Emp1> FindOne(String empName) {
        return emp1Dao.FindOne(empName);
    }

    @Override
    public List<Emp1> FindLian(String empId, String department) {
        return emp1Dao.FindLian(empId,department);
    }


}
